package com.wallet.provider.mapper;

import com.wallet.provider.model.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);

    /**
     * 分页查询系统用户
     * @param pageNum
     * @param pageSize
     * @return
     */
    List<SysUser> selectByPageNumSize(@Param("keywords") String keywords, @Param("pageNum") int pageNum, @Param("pageSize") int pageSize, @Param("orderName") String orderName, @Param("orderType") String orderType);

    /**
     * 根据username查询用户
     * @param username
     * @return
     */
    SysUser selectSysUserByUsername(String username);

    int deleteByIds(String ids);
}